package com.zhi.blog.dto.vo;

import com.zhi.blog.domain.common.BaseRequest;
import com.zhi.common.exception.base.BaseException;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;


/**
 * 博客信息
 *
 * @author yezhiqiu
 * @date 2021/07/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(description = "博客信息")
public class BlogInfoVO extends BaseRequest {

    /**
     * 关于我内容
     */
    private String aboutContent;



    @Override
    public void validate(){
        if(Objects.isNull(aboutContent)){
            throw new BaseException("参数错误测试");
        }
    }

}
